home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1998 August / macformat-066.iso / How-to's / Foreign Files / Creator Changer 2.8.4 / Code & Resource / Creator Changer.h < prev    next >
Encoding:
Text File  |  1997-07-18  |  3.0 KB  |  146 lines  |  [TEXT/KAHL]

  1. typedef unsigned     char Str4[5];
  2. typedef unsigned    char Str16[17];
  3.  
  4. typedef struct
  5.     {
  6.     Str4            CreatorType;
  7.     Str4            FileType;
  8.     Str32            Description;
  9.     } pref_types;
  10.  
  11. typedef struct
  12.     {
  13.     Str4            FromFile;
  14.     Str4            ToCreator;
  15.     Str4            ToFile;
  16.     Str16            Name;
  17.     } auto_chng;
  18.  
  19. typedef struct
  20.     {
  21.     Boolean            DragQuit;
  22.     Boolean            AutoChange;
  23.     } global_prefs;
  24.     
  25. typedef struct
  26.     {
  27.     short            menu_id;
  28.     short            dlog_id;
  29.     short            num_items;
  30.     long            num_files;
  31.     OSType            pref_type;
  32.     Ptr                storage;
  33.     DialogRef        dialog;
  34.     AEDescList        files;
  35.     } Dialog_Info;
  36.  
  37. #ifdef __THINK__
  38.     #define    TRUE                    1
  39.     #define    FALSE                    0
  40. #endif
  41.  
  42. #define    GOOD                    1
  43. #define    BAD                        0
  44. #define    YES                        1
  45. #define    NO                        0
  46. #define    ENTIRE_MENU                0
  47. #define    REMOVE_EVENTS            0
  48. #define    NIL_PTR                    0L
  49. #define    IN_FRONT                 (WindowRef)-1L
  50. #define    MOUSE_REGION            0L
  51. #define    DELAY                    8
  52. #define    TYPE_LEN                 4
  53. #define    DESC_LEN                32
  54. #define    NO_ERR                    0
  55.  
  56. #define    CHNG_TYPE_DLOG_ID        200
  57. #define        CHNG_OK                1
  58. #define        CHNG_CANCEL            2
  59. #define        CHNG_CREATOR        3
  60. #define        CHNG_FILE            4
  61. #define        CHNG_CRNT_CREATOR    5
  62. #define        CHNG_CRNT_TYPE        6
  63. #define        CHNG_POP_UP            7
  64. #define        CHNG_MKLK             8
  65. #define        CHNG_DLOG_UI        14
  66.  
  67. #define    PREF_DLOG_ID            500
  68. #define        PREF_POPUP            1
  69. #define        PREF_DONE            7
  70. #define        PREF_MAX_ITEMS        7
  71.  
  72. #define        PREF_PTYPE_DITL        501
  73. #define            P_PT_CT            1
  74. #define            P_PT_FT            2
  75. #define            P_PT_DS            3
  76. #define            P_PT_PM            4
  77. #define            P_PT_ADD        9
  78. #define            P_PT_DEL        10
  79. #define            P_PT_GFL        11
  80. #define            P_PT_USI        12
  81. #define        PREF_ATYPE_DITL        502
  82. #define            P_AC_CHFT        1
  83. #define            P_AC_CTCT        2
  84. #define            P_AC_CTFT        3
  85. #define            P_AC_POPM        4
  86. #define            P_AC_ADD        10
  87. #define            P_AC_DEL        11
  88. #define            P_AC_GFL        12
  89. #define            P_AC_USI        13
  90. #define        PREF_GNERL_DITL        503
  91. #define            P_GN_OKAC        1
  92. #define            P_GN_QADD        2
  93. #define            P_GN_USRI        3
  94.  
  95. #define    ABOUT_DLOG_ID            400                //    "About Creator Changer..." ID
  96. #define        ABOUT_OK            1
  97. #define        ABOUT_DLOG_UI        3
  98.     
  99. #define    ERROR_ALERT_ID            300                //    Error alert ID
  100.  
  101. #define    ERROR_STRING_LIST        128
  102. #define        TYPES_ERROR_1        1
  103. #define        TYPES_ERROR_2        2
  104. #define        DESC_ERROR            3
  105. #define        SYS7_ERROR_1        4
  106. #define        SYS7_ERROR_2        5
  107. #define        BAD_ITEM_ERROR        6
  108. #define        BAD_CF_TYPE_1        7
  109. #define        BAD_CF_TYPE_2        8
  110. #define        BAD_CF_TYPE_3        9
  111. #define        BAD_CF_TYPE_4        10
  112. #define        MULTI_FILE_1        11
  113. #define        MULTI_FILE_2        12
  114. #define        MULTI_FILE_3        13
  115.  
  116. #define    MISC_STRING_LIST        129
  117. #define        PREF_FILE_NAME        1
  118.     
  119. #define    MAIN_MENU_BAR_ID        128                //    The menubar ID
  120.     
  121. #define    APPLE_MENU_ID            128                //    The apple menu ID
  122. #define        A_ABOUT_ITEM        1                //    about creator changer menu ID
  123.     
  124. #define    FILE_MENU_ID            129                //    The options menu ID
  125. #define        F_OPEN_ITEM            1                //    open file menu item ID
  126. #define        F_PREF_ITEM            2
  127. #define        F_QUIT_ITEM            4                //    quit menu item ID
  128.  
  129. #define    EDIT_MENU_ID            130
  130. #define        E_UNDO_ITEM            1
  131. #define        E_CUT_ITEM            3
  132. #define        E_COPY_ITEM            4
  133. #define        E_PASTE_ITEM        5
  134. #define        E_CLEAR_ITEM        6
  135.     
  136. #define    PREF_TYPES_ID            300
  137. #define    AUTO_CHANGE_ID            301
  138.  
  139. #define    PREF_TYPE_ID            302
  140. #define        P_EPTYPE_ITEM        1
  141. #define        P_EATYPE_ITEM        2
  142. #define        P_GENERL_ITEM        3
  143.  
  144. #define    PREF_PT                    'CCpt'
  145. #define    PREF_GL                    'CCgl'
  146. #define    PREF_AC                    'CCac'